﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:k="clr-namespace:personalplaner.common.themes">

    <Style x:Key="{x:Static k:ResourceKeys.MainContentStyleKey}" TargetType="ContentControl">
        <Setter Property="Foreground" Value="{DynamicResource {x:Static k:ResourceKeys.ForegroundBrush}}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ContentControl">
                    <Border BorderBrush="{DynamicResource {x:Static k:ResourceKeys.CollapsiblePanelBorderBrush}}" 
                                Background="{DynamicResource {x:Static k:ResourceKeys.CollapsiblePanelBackgroundBrush}}" 
                                BorderThickness="1,0,1,1" CornerRadius="1" Margin="0,20,5,5" Grid.Column="1" Grid.Row="1">
                        <Grid>
                            <Border Name="Border" 
                                    BorderBrush="{DynamicResource {x:Static k:ResourceKeys.CollapsiblePanelHeaderBorderBrush}}" 
                                    Background="{DynamicResource {x:Static k:ResourceKeys.CollapsiblePanelHeaderBackgroundBrush}}" 
                                    BorderThickness="0,1,0,1" CornerRadius="1" VerticalAlignment="Top" Height="25" />
                            <!--<ContentControl Content="{Binding SelectedControl}"/>-->
                            <ContentPresenter ContentSource="Content" />
                        </Grid>
                    </Border>
                </ControlTemplate>

            </Setter.Value>
        </Setter>
    </Style>
    
</ResourceDictionary>